//
//  ZGLAgainstModel.h
//  ZeegingLottery
//
//  Created by 蒂埃里 on 2018/4/13.
//  Copyright © 2018年 蒂埃里. All rights reserved.
//

#import <Foundation/Foundation.h>

@class
ZGLAgainstHomeTeamModel,
ZGLAgainstAwayTeamModel,
ZGLAgainstHadModel,
ZGLAgainstHHadModel,
ZGLAgainstAsianModel;



@interface ZGLAgainstModel : NSObject
/*
 "id": "12",
 "matchkey": "20180321001",
 "matchkeycn": "周二001",
 "betdate": "2018-03-21",
 "matchtime": "2018-03-21 12:00:00",
 "leagueid": "9",
 "homeid": "23",
 "awayid": "24",
 "weatherid": "1",
 "city": "熊本",
 "temperature": "12°",
 "sportteryid": "43",
 "homescore": "2",
 "awayscore": "1",
 "halfhomescore": "0",
 "halfawayscore": "1",
 "status": "END",
 "recommendflag": null,
 "win007id": "1503596",
 "leaguename": "日本乙级联赛",
 "leaguenameabbr": "日乙",
 "color": "#22C126",
 "weathername": "大致多云",
 "iconurl": "http://static.sporttery.cn/www/images/weather_logo/cloudy.png",
 "matchidPK": "12",
 "leagueidPK": "9",
 "weatheridPK": "1",
 "matchSportteryId": "105657",
 "home": {
 "id": "23",
 "teamname": "熊本深红",
 "teamnameabbr": "熊本深红",
 "sportteryid": "1079",
 "city": "熊本",
 "logo": "/Statics/uploadfiles/teamlogo/23.png"
 },
 "away": {
 "id": "24",
 "teamname": "大宫松鼠",
 "teamnameabbr": "大宫松鼠",
 "sportteryid": "556",
 "city": "",
 "logo": "/Statics/uploadfiles/teamlogo/24.png"
 },
 "had": {
 "id": "23",
 "updatetime": "2018-03-19 23:47:04",
 "recordtime": "2018-03-20 01:20:25",
 "matchid": "12",
 "oddstype": "SPORTTERY",
 "companyid": "1",
 "homewin": "3.4",
 "awaywin": "1.9",
 "draw": "3.25",
 "Handicap": null,
 "p": {
 "pHome": 0.26071353177116,
 "pDraw": 0.27274646400676,
 "pAway": 0.46654000422208
 }
 },
 "hhad": {
 "id": "24",
 "updatetime": "2018-03-19 23:47:04",
 "recordtime": "2018-03-20 01:20:25",
 "matchid": "12",
 "oddstype": "SPORTTERYHHAD",
 "companyid": "1",
 "homewin": "1.69",
 "awaywin": "3.9",
 "draw": "3.55",
 "Handicap": "1",
 "p": {
 "pHome": 0.52372756331448,
 "pDraw": 0.24932382591591,
 "pAway": 0.22694861076961
 }
 },
 "asian": {
 "id": "1288",
 "updatetime": "2019-03-09 11:58:05",
 "recordtime": "2018-03-21 22:50:24",
 "matchid": "12",
 "oddstype": "ASIAN",
 "companyid": "4",
 "homewin": "0.96",
 "awaywin": "0.94",
 "draw": "0",
 "Handicap": "-0.25"
 }
 */
@property (copy, nonatomic)NSString *id;
@property (copy, nonatomic)NSString *leagueid;     //杯/联赛id
@property (copy, nonatomic)NSString *homeid;       //主队id
@property (copy, nonatomic)NSString *awayid;       //客队id
@property (copy, nonatomic)NSString *matchkeycn;   //  *周二001*
@property (copy, nonatomic)NSString *matchtime;    //对赛时间
@property (copy, nonatomic)NSString *weatherid;    //天气类型ID
@property (copy, nonatomic)NSString *city;         //比赛地点
@property (copy, nonatomic)NSString *temperature;    //气温
@property (copy, nonatomic)NSString *homescore;     //主队得分
@property (copy, nonatomic)NSString *awayscore;    //客队得分
@property (copy, nonatomic)NSString *halfhomescore;     //主队半场得分
@property (copy, nonatomic)NSString *halfawayscore;    //客队半场得分
@property (copy, nonatomic)NSString *status;     //比赛状态,未结束为空
@property (copy, nonatomic)NSString *leaguename;    //联赛名称全称
@property (copy, nonatomic)NSString *leaguenameabbr;     //联赛名称简称
@property (copy, nonatomic)NSString *color;    //联赛代表色
@property (copy, nonatomic)NSString *weathername;     //比赛当地当天天气
@property (copy, nonatomic)NSString *iconurl;    //比赛当前天气图标URL
@property (copy, nonatomic)NSString *closetime;  //截止时间
@property (copy, nonatomic)NSString *matchkey;
@property (copy, nonatomic)NSString *draw;  //期数
@property (assign, nonatomic)NSInteger guts;    //是否设胆

@property (assign, nonatomic)BOOL isSelected;  //是否选择
@property (strong, nonatomic)NSMutableArray *betContentArray; //选中赔率
@property (strong, nonatomic)NSMutableArray *stateArray; //赔率选中状态
@property (strong, nonatomic)NSIndexPath *indexPath; //下标

@property (strong, nonatomic)ZGLAgainstHomeTeamModel *home;
@property (strong, nonatomic)ZGLAgainstAwayTeamModel *away;
@property (strong, nonatomic)ZGLAgainstHadModel *had;
@property (strong, nonatomic)ZGLAgainstHHadModel *hhad;
@property (strong, nonatomic)ZGLAgainstAsianModel *asian;



@end

//主队
@interface ZGLAgainstHomeTeamModel : NSObject
/*
 "home": {
 "id": "23",
 "teamname": "熊本深红",
 "teamnameabbr": "熊本深红",
 "sportteryid": "1079",
 "city": "熊本",
 "logo": "/Statics/uploadfiles/teamlogo/23.png"
 },
 */
@property (copy, nonatomic)NSString *id;
@property (copy, nonatomic)NSString *teamname;  //球队全称
@property (copy, nonatomic)NSString *teamnameabbr;  //球队简称
@property (copy, nonatomic)NSString *sportteryid; //
@property (copy, nonatomic)NSString *city;  //球场城市
@property (copy, nonatomic)NSString *logo;  //球队队标



@end

//客队
@interface ZGLAgainstAwayTeamModel :NSObject
/*
 "away": {
 "id": "24",
 "teamname": "大宫松鼠",
 "teamnameabbr": "大宫松鼠",
 "sportteryid": "556",
 "city": "",
 "logo": "/Statics/uploadfiles/teamlogo/24.png"
 },
 */
@property (copy, nonatomic)NSString *id;
@property (copy, nonatomic)NSString *teamname;  //球队全称
@property (copy, nonatomic)NSString *teamnameabbr;  //球队简称
@property (copy, nonatomic)NSString *sportteryid; //
@property (copy, nonatomic)NSString *city;  //球场城市
@property (copy, nonatomic)NSString *logo;  //球队队标


@end

//胜平负赔率
@interface ZGLAgainstHadModel : NSObject
/*
 {
 "id": "23",
 "updatetime": "2018-03-19 23:47:04",
 "recordtime": "2018-03-20 01:20:25",
 "matchid": "12",
 "oddstype": "SPORTTERY",
 "companyid": "1",
 "homewin": "3.4",
 "awaywin": "1.9",
 "draw": "3.25",
 "Handicap": null,
 "p": {
 "pHome": 0.26071353177116,
 "pDraw": 0.27274646400676,
 "pAway": 0.46654000422208
 }
 */
@property (copy, nonatomic)NSString *id;
@property (copy, nonatomic)NSString *oddstype;   //赔率类型
@property (copy, nonatomic)NSString *companyid;   //博彩公司ID
@property (copy, nonatomic)NSString *homewin;   //主胜赔率
@property (copy, nonatomic)NSString *awaywin;   //主负赔率
@property (copy, nonatomic)NSString *draw;   //平手赔率



@end

//让球胜平负赔率
@interface ZGLAgainstHHadModel : NSObject
/*
 {
 "id": "24",
 "updatetime": "2018-03-19 23:47:04",
 "recordtime": "2018-03-20 01:20:25",
 "matchid": "12",
 "oddstype": "SPORTTERYHHAD",
 "companyid": "1",
 "homewin": "1.69",
 "awaywin": "3.9",
 "draw": "3.55",
 "Handicap": "1",
 "p": {
 "pHome": 0.52372756331448,
 "pDraw": 0.24932382591591,
 "pAway": 0.22694861076961
 }
 */
@property (copy, nonatomic)NSString *id;
@property (copy, nonatomic)NSString *oddstype;   //赔率类型
@property (copy, nonatomic)NSString *companyid;   //博彩公司ID
@property (copy, nonatomic)NSString *homewin;   //主胜赔率
@property (copy, nonatomic)NSString *awaywin;   //主负赔率
@property (copy, nonatomic)NSString *draw;   //平手赔率
@property (copy, nonatomic)NSString *Handicap;  //让球数


@end

//亚盘赔率
@interface ZGLAgainstAsianModel : NSObject
/*
 {
 "id": "1288",
 "updatetime": "2019-03-09 11:58:05",
 "recordtime": "2018-03-21 22:50:24",
 "matchid": "12",
 "oddstype": "ASIAN",
 "companyid": "4",
 "homewin": "0.96",
 "awaywin": "0.94",
 "draw": "0",
 "Handicap": "-0.25"
 }
 */
@property (copy, nonatomic)NSString *oddstype;   //赔率类型
@property (copy, nonatomic)NSString *companyid;   //博彩公司ID
@property (copy, nonatomic)NSString *homewin;   //主胜赔率
@property (copy, nonatomic)NSString *awaywin;   //主负赔率
@property (copy, nonatomic)NSString *draw;   //平手赔率
@property (copy, nonatomic)NSString *Handicap;  //让球数(盘口)


@end



